package core;

public class Clip {
	
	private Point3D mPoint1;
	
	private Point3D mPoint2;
	
	public Clip() {
		mPoint1 = new Point3D(0, 0);
		mPoint2 = new Point3D(0, 0);
	}

	public Clip(Point3D p1, Point3D p2) {
		mPoint1 = p1;
		mPoint2 = p2;
	}
	
	public Point3D getPoint1() {
		return mPoint1;
	}

	public void setPoint1(Point3D point1) {
		this.mPoint1 = point1;
	}

	public Point3D getPoint2() {
		return mPoint2;
	}

	public void setPoint2(Point3D point2) {
		this.mPoint2 = point2;
	}
	
	public int getWidth() {
		return Math.abs(mPoint1.getX() - mPoint2.getX());
	}
	
	public int getHeight() {
		return Math.abs(mPoint1.getY() - mPoint2.getY());
	}
	
}
